package com.example.smartcity.Controller;

import com.example.smartcity.Service.BannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;

@RestController
public class BannerController {
    @Autowired
    @Qualifier(value = "BannerService")
    private BannerService bannerService;

    @RequestMapping(value = "/banners/getall")
    public String getBanners(HttpServletResponse response){return bannerService.getAllBanner();}
}
